<footer id="zan-footer">
    Copyright © 2010-2014 Android开发技术博客-<a href="http:://blog.goggb.com">去逛逛吧</a>（www.goggb.com）. Powered by <a href="http:://www.goggb.com">逛逛网</a>
    <!--统计代码开始-->
    </footer>

<div style="display: none;" class="fa fa-angle-up" id="gotop"></div>
<script type='text/javascript'>
    backTop=function (btnId){
        var btn=document.getElementById(btnId);
        var d=document.documentElement;
        var b=document.body;
        window.onscroll=set;
        btn.onclick=function (){
            btn.style.display="none";
            window.onscroll=null;
            this.timer=setInterval(function(){
                d.scrollTop-=Math.ceil((d.scrollTop+b.scrollTop)*0.1);
                b.scrollTop-=Math.ceil((d.scrollTop+b.scrollTop)*0.1);
                if((d.scrollTop+b.scrollTop)==0) clearInterval(btn.timer,window.onscroll=set);
            },10);
        };
        function set(){btn.style.display=(d.scrollTop+b.scrollTop>100)?'block':"none"}
    };
    backTop('gotop');
</script>
